package Pieces;

public class Tee extends Piece {
    public static int PROBABILITY = 15; //percent chance of this piece being selected

    private BlockType[][] teeArrayUpright = {
			{BlockType.RED, BlockType.RED, BlockType.RED, BlockType.NONE},
			{BlockType.NONE, BlockType.RED, BlockType.NONE, BlockType.NONE},
			{BlockType.NONE, BlockType.NONE, BlockType.NONE, BlockType.NONE},
			{BlockType.NONE, BlockType.NONE, BlockType.NONE, BlockType.NONE}
		};
    
    private BlockType[][] teeArrayLeft = {
			{BlockType.NONE, BlockType.RED, BlockType.NONE, BlockType.NONE},
			{BlockType.RED, BlockType.RED, BlockType.NONE, BlockType.NONE},
			{BlockType.NONE, BlockType.RED, BlockType.NONE, BlockType.NONE},
			{BlockType.NONE, BlockType.NONE, BlockType.NONE, BlockType.NONE}
		};
    
    private BlockType[][] teeArrayDown = {
			{BlockType.NONE, BlockType.NONE, BlockType.NONE, BlockType.NONE},
			{BlockType.NONE, BlockType.RED, BlockType.NONE, BlockType.NONE},
			{BlockType.RED, BlockType.RED, BlockType.RED, BlockType.NONE},
			{BlockType.NONE, BlockType.NONE, BlockType.NONE, BlockType.NONE}
		};
    
    private BlockType[][] teeArrayRight = {
			{BlockType.NONE, BlockType.RED, BlockType.NONE, BlockType.NONE},
			{BlockType.NONE, BlockType.RED, BlockType.RED, BlockType.NONE},
			{BlockType.NONE, BlockType.RED, BlockType.NONE, BlockType.NONE},
			{BlockType.NONE, BlockType.NONE, BlockType.NONE, BlockType.NONE}
		};
    
    public Tee() {
		super();
	}

	@Override
	public BlockType[][] getCurrentBlockArray() {
		switch(currentState) {
		case DEFAULT:
			return teeArrayUpright;
		case FIRST:
			return teeArrayLeft;
		case SECOND:
			return teeArrayDown;
		default:
			return teeArrayRight;
		}
	}

}
